package com.shux.utils.constants;

import org.springframework.context.ApplicationContext;

/**
 **********************************************
 *  描述：
 * Simba.Hua
 * 2017年5月29日
 **********************************************
**/
public interface Constant {
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";// 验证码
	public static final String SESSION_USER = "sessionUser"; // session用的用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String sSESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList"; // 当前菜单
	public static final String SESSION_allmenuList = "allmenuList"; // 全部菜单
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";
	public static final String SESSION_USERROL = "USERROL"; // 用户对象
	public static final String SESSION_USERNAME = "USERNAME"; // 用户名
	public static final String TRUE = "T";
	public static final String FALSE = "F";
	public static final String LOGIN = "/login_toLogin.do"; // 登录地址
	public static final String SYSNAME = "admin/config/SYSNAME.txt"; // 系统名称路径
	public static final String PAGE = "admin/config/PAGE.txt"; // 分页条数配置路径
	public static final String EMAIL = "admin/config/EMAIL.txt"; // 邮箱服务器配置路径
	public static final String SMS1 = "admin/config/SMS1.txt"; // 短信账户配置路径1
	public static final String SMS2 = "admin/config/SMS2.txt"; // 短信账户配置路径2
	public static final String FWATERM = "admin/config/FWATERM.txt"; // 文字水印配置路径
	public static final String IWATERM = "admin/config/IWATERM.txt"; // 图片水印配置路径
	public static final String WEIXIN = "admin/config/WEIXIN.txt"; // 微信配置路径
	public static final String WEBSOCKET = "admin/config/WEBSOCKET.txt";// WEBSOCKET配置路径
	public static final String FILEPATHIMG = "admin/config/UPLOADFILEPATH.txt"; // 图片上传路径
	public static final String FILEPATHAPP = "uploadFiles/app/"; // 安卓app上传路径
	public static final String FILEPATHFILE = "uploadFiles/file/"; // 文件上传路径
	public static final String FILEPATHTWODIMENSIONCODE = "uploadFiles/twoDimensionCode/"; // 二维码存放路径
	public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)|(app)|(assets)|(static)|(main)|(shop)|(uploadFiles)|(apk)).*"; // 不对匹配该值的访问路径拦截（正则）
	public static ApplicationContext WEB_APP_CONTEXT = null; // 该值会在web容器启动时由WebAppContextListener初始化
	public static final String SMS_TITLE = "智慧白陂";
	public static String PATHCHOOSE = ":";//如果是window，获取的服务器地址重包含:，如果是linux则不包含
	
	
	/**
	 * APP Constants
	 */
	// app注册接口_请求协议参数)
	public static final String[] APP_REGISTERED_PARAM_ARRAY = new String[] {
			"countries", "uname", "passwd", "title", "full_name",
			"company_name", "countries_code", "area_code", "telephone",
			"mobile" };
	public static final String[] APP_REGISTERED_VALUE_ARRAY = new String[] {
			"国籍", "邮箱帐号", "密码", "称谓", "名称", "公司名称", "国家编号", "区号", "电话", "手机号" };

	// app根据用户名获取会员信息接口_请求协议中的参数
	public static final String[] APP_GETAPPUSER_PARAM_ARRAY = new String[] { "USERNAME" };
	public static final String[] APP_GETAPPUSER_VALUE_ARRAY = new String[] { "用户名" };
	
	public static final String SAVED_REQUEST_KEY = "shiroSavedRequest";
	
	public static final String EXCEPTION_MESSAGE_USERNAME_PASSWORD_ISNOT_CORRECT = "用户名或密码不正确!";
	public static final String EXCEPTION_MESSAGE_YOU_ARE_FORBIDDEN = "您无相关权限";
	public static final String EXCEPTION_OTHER_ERROR = "后台发生异常，请稍后在试或者联系管理员!";
	
	public static final String OPERATOR_QUERY = "query";
	public static final String OPERATOR_ADD = "add";
	public static final String OPERATOR_EDIT = "edit";
	public static final String OPERATOR_DELETE = "delete";
	

}
